import { demoBlockPlugin } from 'vitepress-theme-demoblock'

const sidebar = {
    '/': [
        { text: '快速开始', link: '/' },
        {
            text: 'icon',link:'/components/icon/'
        },
        {
            text: 'button',link:'/components/button/'
        },

    ]
}

const config = {
    title:'e-view',
    themeConfig: {
        sidebar,

    },
    markdown: {
        config: (md: { use: (arg0: any) => void }) => {
            // 这里可以使用 markdown-it 插件，vitepress-theme-demoblock就是基于此开发的
            md.use(demoBlockPlugin)
        }
    }
}

export default config
